package io.wdb.modules.generator.generator.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.wdb.modules.generator.generator.dao.UserCostFlagDao;
import io.wdb.modules.generator.generator.entity.UserCostFlagEntity;
import io.wdb.modules.generator.generator.service.UserCostFlagService;



@Service("userCostFlagService")
public class UserCostFlagServiceImpl implements UserCostFlagService {
	@Autowired
	private UserCostFlagDao userCostFlagDao;
	
	@Override
	public UserCostFlagEntity queryObject(Long id){
		return userCostFlagDao.queryObject(id);
	}
	
	@Override
	public List<UserCostFlagEntity> queryList(Map<String, Object> map){
		return userCostFlagDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return userCostFlagDao.queryTotal(map);
	}
	
	@Override
	public void save(UserCostFlagEntity userCostFlag){
		userCostFlagDao.save(userCostFlag);
	}
	
	@Override
	public void update(UserCostFlagEntity userCostFlag){
		userCostFlagDao.update(userCostFlag);
	}
	
	@Override
	public void delete(Long id){
		userCostFlagDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		userCostFlagDao.deleteBatch(ids);
	}
	
}
